<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>二维码</title>
    <script src="__INDEX__/js/mui.min.js"></script>
	<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="__INDEX__/css/iconfont.css" />
	<link rel="stylesheet" href="__INDEX__/css/style.css" />
	<link rel="stylesheet" href="__INDEX__/css/mall.css" />	
	<style> 
#qrcode canvas{width: 250px; height: 250px;}
.payment_conbox{width: 270px; height: 270px;}
@media screen and (min-width: 320px) and (max-width: 370px){.payment_conbox{width: 180px; height: 180px;}#qrcode canvas{width: 160px; height: 160px;}} 
@media screen and (min-width: 414px) and (max-width: 630px){.payment_conbox{width: 230px; height: 230px;}#qrcode canvas{width: 210px; height: 210px;}.bottom{bottom: 2rem;}.ewm_box{padding: 3rem 0;}} 
@media screen and (min-width: 375px) and (max-width: 410px){.payment_conbox{width: 210px; height: 210px;}#qrcode canvas{width: 190px; height: 190px;}.bottom{bottom: 2rem;}.ewm_box{padding: 2.5rem 0;}} 
</style> 
<!--[if lt IE 9]> 
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script> 
<![endif]--> 
</head>

	<body>		
		<div class="mui-content erweima_con">
			<div><img src="__INDEX__/images/ewm01.jpg"></div>
			<div class="ewm_box">
				<div class="payment_conbox" >
					<div id="qrcode"></div>
					<div class="name"></div>
				</div>
			</div>
			<div class="bottom"><img src="__INDEX__/images/ewm03.jpg"></div>
		</div>
		{include file="public/footer" /}
	</body>
</html>
<script src="/public/static/js/jquery.qrcode.js"></script>
<script src="/public/static/js/utf.js"></script>

<script>
	$("#qrcode").qrcode({
		render: "canvas", //设置渲染方式，有table和canvas，使用canvas方式渲染性能相对来说比较好
		text: "{$code_url}",
		width: "200", //二维码的宽度
		height: "200", //二维码的高度
		background: "#ffffff", //二维码的后景色
		foreground: "#000000", //二维码的前景色
		src: "{$logo}" //二维码中间的图片
	});
</script>

